package com.space.user.database.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @since 2021-05-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("user_account")
public class UserAccountDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.INPUT)
    private Integer userId;

    @TableField("balance")
    private BigDecimal balance;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("freeze_status")
    private Boolean freezeStatus;

    @TableField("freeze_time")
    private LocalDateTime freezeTime;


}
